<div class="goods-gallery add-step2">
    <a class='sample_demo' id="select_submit_goods" href="/?s=seller/album/pic_list&item=goods&inajax=1" style="display:none;">提交</a>
    <div class="nav"><span class="l">用户相册 > {$album.aclass_name} </span><span class="r">
            <select name="jumpMenu" id="jumpMenu_goods" style="width:100px;">
                <option value="0" style="width:80px;">请选择...</option>
                {foreach $lists as $one}
                <option style="width:80px;" value="{$one.aclass_id}" >{$one.aclass_name}</option>
                {/foreach}
            </select>
        </span>
    </div>
    <ul class="list">
        {foreach $pics as $one}
        <li onclick="insert_img('{$one.apic_cover}', '{$one.apic_cover|img_url=360}');">
            <a href="JavaScript:void(0);">
                <img alt="{$one.apic_name}" src="{$one.apic_cover|img_url=100}" title='{$one.apic_name}'/>
            </a>
        </li>
        {/foreach}
    </ul>
    {$pics->render()}
</div>
<script>
    $(document).ready(function () {
        $('.demo').ajaxContent({
            event: 'click',
            loaderType: 'img',
            loadingMsg: '/old/shop/templates/new20160622/images/loading.gif',
            target: '#demo'
        });
        $('#jumpMenu_goods').change(function () {
            $('#select_submit_goods').attr('href', $('#select_submit_goods').attr('href') + "&id=" + $('#jumpMenu_goods').val());
            $('.sample_demo').ajaxContent({
                event: 'click',
                loaderType: 'img',
                loadingMsg: '/old/shop/templates/new20160622/images/loading.gif',
                target: '#demo'
            });
            $('#select_submit_goods').click();
        });
    });
</script>